package com.max.xihu.concurrent.day01;

/**
 * @Author: Max
 * @Date: 2020-07-05 02:31
 * @Description:
 */
public interface ThreadPool<Job extends Runnable> {

    void execute(Job job);

    void shutDown();

    void addWorkers(int num);

    void removeWorker(int num);

    int getJobSize();
}
